<?php

namespace App\Controller;

use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class LearnController extends Controller
{
    /**
     * @Route("/learn", name="learn")
     */
    public function index()
    {
        $Admin = new Admin();
//        $Admin
        $Admin->setUsername(111)->setPassword(111)->setPassword1(222);
        $this->getDoctrine()->getManager()->persist($Admin);
        $this->getDoctrine()->getManager()->flush();
//        echo 1;
//        echo "<h1 style='font-size: 100px;'>浪个JB</h1>";
        return $this->render('learn/index.html.twig', [
            'controller_name' => 'LearnController',
        ]);
    }
}
